import request from '@/utils/request'

// 查询怠速时长以及油耗列表
export function listCarStop(query) {
  return request({
    url: '/report/carStop/list',
    method: 'get',
    params: query
  })
}

// 查询怠速时长以及油耗详细
export function getCarStop(stopId) {
  return request({
    url: '/report/carStop/' + stopId,
    method: 'get'
  })
}

// 新增怠速时长以及油耗
export function addCarStop(data) {
  return request({
    url: '/report/carStop',
    method: 'post',
    data: data
  })
}

// 修改怠速时长以及油耗
export function updateCarStop(data) {
  return request({
    url: '/report/carStop',
    method: 'put',
    data: data
  })
}

// 删除怠速时长以及油耗
export function delCarStop(stopId) {
  return request({
    url: '/report/carStop/' + stopId,
    method: 'delete'
  })
}
